package zuoye20;

import java.util.Scanner;

public class zuoye6 {
//    游客那题：一个景区根据游人的年龄收取不同价格的门票。请编写游人类，根据年龄段决定能够购买的门票价格并输出
public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    System.out.println("请输入年龄:");
    int i = scanner.nextInt();
    Visitor visitor = new Visitor();

    String s = visitor.ticket(i);
    System.out.println(s);
}
}
